/*------------------------------------------------------------------------------
 * Copyright 2012 NCR Corporation
 *------------------------------------------------------------------------------
 * All revision information is updated automatically from source code control
 * change records - please do not manually edit.
 *------------------------------------------------------------------------------
 *
 * $LastChangedRevision:: 1730                                     $
 * $LastChangedBy:: rb250096                                       $
 * $LastChangedDate:: 2012-03-07 15:51:59 -0500 (Wed, 07 Mar 2012) $
 */

package com.ncr.nep.dashboardcore.utils.client;

/**
 * Interface for generic function delegates and callbacks that is parameterized
 * with a single parameter.
 *
 * @param <R> The type returned by the delegate's {@link #invoke(Object)}
 *            function.
 * @param <P> The type of parameter the delegate takes in its
 *            {@link #invoke(Object)} method.
 *
 * @author rb250096
 * @version $Revision: 1730 $
 */
public interface ParameterizedDelegate<R,P> {

    /**
     * Invokes the delegate.
     *
     * @param value
     * @return
     */
    R invoke(P value);
}
